﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using Antu.WebControls;
using Antu.Core.Components;
using Antu.Core.Services;
using System.Web.UI.WebControls;
using EluZSProvider;
using System.Web;
using System.Data;
using Antu.Core.DataAccess;

namespace WebSys.UI.Control.ZhengShou
{
    public class ZJ_sdhzControl : MPBasicTemplate
    {
   
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (!base.Page.IsPostBack)
            {

            }

        }

        public static string getstrurl(string fname)
        {
            EluZSDataProvider _EluZSDataProvider = (EluZSDataProvider)ProviderService.ProviderServiceMange.GetProvider("EluZSProvider");
            DataSet dt = _EluZSDataProvider.GetOneDs("st_form", " * ", " and fname='" + fname + "' and rot=0 ");
            if (dt != null && dt.Tables.Count > 0 && dt.Tables[0].Rows.Count > 0)
            {
                string newurl = System.Configuration.ConfigurationSettings.AppSettings["WorkFlowService"] + "/HtmlPage/HtmlMainPage.aspx?iid=" + HttpContext.Current.Request["iid"] + "&UserId=" + HttpContext.Current.Session["UserId"] + "&FormName=" + dt.Tables[0].Rows[0]["fid"] + "&input_index=0";
                return newurl;

            }
            return "#";
        }
    }
}


